import store from '@/store'
export default {
    methods: {
        checkPermission(key) {
            const { roles } = store.state.permission
            if (roles.points && roles.points.length) {
                return roles.points.some(item => item === key)
            }
        }
    }
}
